<template>
    <div>
        <div class="wrapper">
            <div class="img">
                <img :src="itemdata.picUrl" alt="">
                <div class="img_title">{{itemdata.name}}</div>
            </div>
            <div class="messge">{{itemdata.rcmdtext}}</div>
        </div>
    </div>
</template>

<script>
    export default {
        name:"MuiseStory",
        props:{
            itemdata:{
                type:Object,
                default:() =>{}
            }
        }

    }
</script>

<style lang="less" scoped>
.wrapper{
    width: 100%;
    .img{
        width: 100%;
        // height: 200px;
        position: relative;
        img{
            width: 100%;
            border-radius: 5px;
            cursor: pointer;
        }
        .img_title{
            text-shadow:5px 0px 10px #000;
            color: #fff;
            width: 100%;
            text-overflow: ellipsis;
            white-space:nowrap;
            overflow: hidden;
            box-sizing: border-box;
            padding: 10px;
             cursor: default;
        }
    }
    .img_title{
        position:absolute;
        bottom: 0px;
        left: 0;
    }
    .messge{
        margin-top: 10px    ;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        cursor: pointer;
        color: #666;
        &:hover{
            color: black;
        }
    }
}
</style>